package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 审批流程中的节点,保存第次审批的内容 
 * 
 * @author Neil 
 *
 */
@Entity
@Table(name = "sl_crm_auditNode")
public class AuditNode extends Root {
	/**
	 * 节点任务ID
	 */
	@Column(name = "sTaskId", nullable = false)
	private String taskId;
	/**
	 * 流程实例ID
	 */
	@Column(name = "sPInstId", nullable = false)
	private String pInstId;
	/**
	 * 审批人
	 */
	
	@OneToOne
	@JoinColumn(unique=false)
	private User auditor;
	/**
	 * 审批意见
	 */
	@Column(name = "sAuditAdvice")
	private String auditAdvice;
	/**
	 * 审批状态
	 */
	@Column(name = "sAuditState", nullable = false)
	private String auditState;
	@Column(name = "sEntityId")
	private String entityId;
	
	@Column(name = "sEntityName")
	private String entityName;
	
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getpInstId() {
		return pInstId;
	}
	public void setpInstId(String pInstId) {
		this.pInstId = pInstId;
	}
	public User getAuditor() {
		return auditor;
	}
	public void setAuditor(User auditor) {
		this.auditor = auditor;
	}
	public String getAuditAdvice() {
		return auditAdvice;
	}
	public void setAuditAdvice(String auditAdvice) {
		this.auditAdvice = auditAdvice;
	}
	public String getAuditState() {
		return auditState;
	}
	public void setAuditState(String auditState) {
		this.auditState = auditState;
	}
	public String getEntityId() {
		return this.entityId;
	}
	public void setEntityId(String entityId) {
		this.entityId = entityId;
	}
	public String getEntityName() {
		return entityName;
	}
	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	
	
}
